package com.cvit.dao;

import com.cvit.model.Student;
import com.cvit.model.StudentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(String id);

    /**
     * 注册学生信息
     * */
    int insert(Student record);

    int insertSelective(Student record);

    List<Student> selectByExample(StudentExample example);
    
    /**
     * 查询学生信息
     * */
    List<Student> selectByStudent(Student student);

    /**
     * 查询未缴费
     * */
    List<Student> selectByPay(StudentExample example);
    
    /**
     * 根据Id查询
     * */
    Student selectByPrimaryKey(String id);
    
    /**
	 * 根据考生号查询
	 * */
    Student selectByEamineeId(String eamineeId);
    
    /**
	 * 根据身份证号查询
	 * */
    Student selectByCardId(String cardId);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    /**
     * 修改学生信息
     * */
    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
    
    /**
     *查询字段最大值 
     * */
    int selectMax();

    /**
     * 身份验证
     * */
	Student selectVerify(Student student);

	/**
	 * 根据考生号修改缴费状态为1
	 * */
	int updatePayByEamineeId(Student record);

	/**
	 * 根据考生号修改打印状态为1
	 * */
	int updateTicketByEamineeId(Student record);
}